<?php
namespace haibao\cms\model\data;

class AmericanTag extends Base{
	
	/**
	 * 无结构标签
	 */
	const STRUCTURE_TAG = 6;
	/**
	 * 投票标签id
	 */
	const VOTE_TAG = 2713;
	/**
	 * 默认标签级别
	 */
	const DEFAULT_TAG_LEVEL = 1;
	/**
	 * 普通
	 */
	const TYPE_COMMON = 0;
	
	/**
	 * 品牌
	 */
	const TYPE_BRAND = 1;
	
	const TYPE_BRAND_URL = '/brand/%s/';
	
	/**
	 * 产品
	 */
	const TYPE_PRODUCT = 2;
	
	/**
	 * 组合
	 */
	const TYPE_GROUP = 3;
	
	/**
	 * 明星
	 */
	const TYPE_STAR = 4;
	
	const TYPE_STAR_URL = '/star/%s/';
	
	/**
	 * 设计师
	 */
	const TYPE_DESIGNER = 5;
	
	const TYPE_DESIGNER_URL = '/designer/%s/';
	
	/**
	 * 时尚
	 */
	const SITETYPE_FASHION = 0;
	
	/**
	 * 美剧
	 */
	const SITETYPE_US_TV  = 1;
	
	/**
	 * 不可用
	 */
	const STATUS_DISABLE = 0;
	
	/**
	 * 可用
	 */
	const STATUS_ENABLE = 1;
	/**
	 * 
	 */
	const STATUS_FROZEN = 2;
	/**
	 * 顶级标签的parent_id为0
	 */
	const TOP_PARENT_ID = 0;
	
	/**
	 * 推广标签id
	 */
	const SPREAD_TAG_ID = 2901;
	
	/**
	 * 品牌标签id
	 */
	const BRAND_TAG_ID = 955;
	
	/**
	 * 明星标签id
	 */
	const CELEBRITY_TAG_ID = 1383;
	
	/**
	 * 设计师标签id
	 */
	const DESINGER_TAG_ID = 2848;
	
	/**
	 * 标签名称
	 */
	public $TagName;
	
	/**
	 * 标签别名
	 */
	public $Alias = '';
	
	/**
	 * 父级标签id
	 */
	public $ParentId;
	
	/**
	 * 标签层级
	 */
	public $TagLevel = 0;
	
	/**
	 * 全拼
	 */
	public $QuanPin = '';
	
	/**
	 * 简拼
	 */
	public $JianPin = '';
	
	/**
	 * url
	 */
	public $Url;
	
	/**
	 * 标签类型
	 */
	public $TagType;
	
	/**
	 * 标签状态
	 */
	public $TagStatus;
	
	/**
	 * 创建用户
	 */
	public $Creator;
	
	/**
	 * 创建时间
	 */
	public $CreateTime;
	/**
	 * 操作者
	 */
	public $Suser;
	
	/**
	 * 上次修改时间
	 */
	public $LastModified;
	
	/**
	 * 顶级标签id
	 */
	public $TopId = 0;
	
	/**
	 * 专题id
	 */
	public $TopicId;
	
	/**
	 * 总点击量
	 */
	public $Hits = 0;
	/**
	 * 今日点击量
	 */
	public $TodayHits = 0;
	
	/**
	 * 昨日点击量
	 */
	public $YestodayHits = 0;
	
	/**
	 * 标签描述或解释
	 */
	public $Desc = '';
	
	/**
	 * 标签下的文章数量
	 */
	public $ArticleNum = 0;
	
	/**
	 * 月权重
	 */
	public $MonthWeight = 0;
	
	/**
	 * 标签所属归类类型
	 */
	public $TagBelongType = 0;
	
	/**
	 * 日权重
	 */
	public $DayWeight = 0;
	
	/**
	 * 周权重
	 */
	public $WeekWeight = 0;
	
	/**
	 * 48小时内该标签的图集浏览量
	 */
	public $PvNum48 = 0;
	
	/**
	 * 站点类型
	 */
	public $SiteType = 0;
	
	public function __construct(){
		parent::__construct();
		$this->setColumnName('Id', 'tag_id');
		$this->stringField('TagName', 'tag_name', true);
		$this->stringField('Alias', 'alias', true);
		$this->intField('ParentId', 'parent_id', true);
		$this->intField('TagLevel', 'tag_level', true);
		$this->stringField('QuanPin', 'quanpin', true);
		$this->stringField('JianPin', 'jianpin', true);
		$this->stringField('Url', 'url', true);
		$this->intField('TagType', 'tag_type', true);
		$this->intField('TagStatus', 'tag_status', true);
		$this->stringField('Creator', 'creator', true);
		$this->dateField('CreateTime', 'created', true);
		$this->stringField('Suser', 'suser', true);
		$this->dateField('LastModified', 'lastmodified', true);
		$this->intField('TopId', 'top_id', true);
		$this->intField('TopicId', 'topic_id', true);
		$this->intField('Hits', 'hits', true);
		$this->intField('TodayHits', 'today_hits', true);
		$this->intField('YestodayHits', 'yestoday_hits', true);
		$this->stringField('Desc', 'desc', true);
		$this->intField('ArticleNum', 'article_num', true);
		$this->intField('MonthWeight', 'month_weight', true);
		$this->intField('TagBelongType', 'tag_belong_type', true);
		$this->intField('DayWeight', 'day_weight', true);
		$this->intField('WeekWeight', 'week_weight', true);
		$this->intField('PvNum48', 'pv_num_48', true);
		$this->intField('SiteType', 'sitetype', true);
		$this->setTableName('hmeiju_tag');
	}
}